package com.UnionPayCenter.mapper;

import com.UnionPayCenter.base.MyMapper;
import com.UnionPayCenter.entity.ChannelEntity;
import com.UnionPayCenter.entity.UserLevelEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserLevelMapper extends MyMapper<UserLevelEntity> {

    List<UserLevelEntity> selectList(@Param("shopId") Integer shopId);

    void insertBatch(@Param("list")  List<UserLevelEntity> list);

    UserLevelEntity selectDefault(@Param("shopId")  Integer shopId);

    UserLevelEntity selectPreLevel(@Param("shopId") Integer shopId, @Param("levelId") Integer levelId, @Param("amount") Double amount);

    List<UserLevelEntity> seletByName(@Param("shopId") Integer shopId, @Param("name") String name);
}
